import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/wedding',
    name: 'Wedding',
    meta: {
      title: '婚礼管理',
      icon: 'mdi:heart',
      orderNo: 20,
    },
    children: [
      // ==================== 工作台 ====================
      {
        path: 'dashboard',
        name: 'WeddingDashboard',
        component: () => import('#/views/wedding/dashboard/index.vue'),
        meta: {
          title: '工作台',
          icon: 'mdi:view-dashboard',
        },
      },

      // ==================== 资源管理 ====================
      {
        path: 'resource',
        name: 'WeddingResourceManagement',
        meta: {
          title: '资源管理',
          icon: 'mdi:folder-multiple',
        },
        children: [
          {
            path: 'dress',
            name: 'WeddingDressResource',
            component: () => import('#/views/wedding/dressresource/index.vue'),
            meta: {
              title: '婚纱管理',
              icon: 'mdi:hanger',
            },
          },
          {
            path: 'makeupartist',
            name: 'WeddingMakeupArtist',
            component: () => import('#/views/wedding/makeupartist/index.vue'),
            meta: {
              title: '化妆师管理',
              icon: 'mdi:palette',
            },
          },
          {
            path: 'photographer',
            name: 'WeddingPhotographer',
            component: () => import('#/views/wedding/photographer/index.vue'),
            meta: {
              title: '摄影师管理',
              icon: 'mdi:camera',
            },
          },
        ],
      },

      // ==================== 订单管理 ====================
      {
        path: 'order',
        name: 'WeddingOrderManagement',
        meta: {
          title: '订单管理',
          icon: 'mdi:file-document-multiple',
        },
        children: [
          {
            path: 'wedding',
            name: 'WeddingOrder',
            component: () => import('#/views/wedding/weddingorder/index.vue'),
            meta: {
              title: '婚礼订单',
              icon: 'mdi:file-document',
            },
          },
          {
            path: 'dressrental',
            name: 'WeddingDressRentalOrder',
            component: () => import('#/views/wedding/dressrentalorder/index.vue'),
            meta: {
              title: '婚纱租赁订单',
              icon: 'mdi:hanger',
            },
          },
          {
            path: 'makeupservice',
            name: 'WeddingMakeupServiceOrder',
            component: () => import('#/views/wedding/makeupserviceorder/index.vue'),
            meta: {
              title: '化妆服务订单',
              icon: 'mdi:palette',
            },
          },
          {
            path: 'photography',
            name: 'WeddingPhotographyOrder',
            component: () => import('#/views/wedding/photographyorder/index.vue'),
            meta: {
              title: '摄影订单',
              icon: 'mdi:camera',
            },
          },
          {
            path: 'serviceitems',
            name: 'WeddingOrderServiceItems',
            component: () => import('#/views/wedding/orderserviceitems/index.vue'),
            meta: {
              title: '订单服务项',
              icon: 'mdi:format-list-bulleted',
              hideMenu: true,
            },
          },
          {
            path: 'paymentrecord',
            name: 'WeddingOrderPaymentRecord',
            component: () => import('#/views/wedding/orderpaymentrecord/index.vue'),
            meta: {
              title: '订单支付记录',
              icon: 'mdi:cash',
              hideMenu: true,
            },
          },
        ],
      },

      // ==================== 套餐管理 ====================
      {
        path: 'package',
        name: 'WeddingPackage',
        component: () => import('#/views/wedding/package/index.vue'),
        meta: {
          title: '套餐管理',
          icon: 'mdi:package-variant',
        },
      },

      // ==================== 预约与档期 ====================
      {
        path: 'schedule-management',
        name: 'WeddingScheduleManagement',
        meta: {
          title: '预约与档期',
          icon: 'mdi:calendar-month',
        },
        children: [
          {
            path: 'booking',
            name: 'WeddingBooking',
            component: () => import('#/views/wedding/booking/index.vue'),
            meta: {
              title: '预约中心',
              icon: 'mdi:calendar-check',
            },
          },
          {
            path: 'schedule',
            name: 'WeddingSchedule',
            component: () => import('#/views/wedding/schedule/index.vue'),
            meta: {
              title: '档期管理',
              icon: 'mdi:calendar-month',
            },
          },
          {
            path: 'artist-schedule',
            name: 'WeddingArtistSchedule',
            component: () => import('#/views/wedding/artistschedule/index.vue'),
            meta: {
              title: '化妆师档期',
              icon: 'mdi:calendar-clock',
            },
          },
        ],
      },

      // ==================== 交付管理 ====================
      {
        path: 'delivery',
        name: 'WeddingDeliveryManagement',
        meta: {
          title: '交付管理',
          icon: 'mdi:package-check',
        },
        children: [
          {
            path: 'photo',
            name: 'WeddingPhotoDelivery',
            component: () => import('#/views/wedding/photodelivery/index.vue'),
            meta: {
              title: '照片交付',
              icon: 'mdi:image-multiple',
            },
          },
        ],
      },

      // ==================== 客户管理 ====================
      {
        path: 'customer',
        name: 'WeddingCustomer',
        component: () => import('#/views/wedding/customer/index.vue'),
        meta: {
          title: '客户管理',
          icon: 'mdi:account-multiple',
        },
      },

      // ==================== 评论管理 ====================
      {
        path: 'comment',
        name: 'WeddingCommentManagement',
        component: () => import('#/views/wedding/comment/index.vue'),
        meta: {
          title: '评论管理',
          icon: 'mdi:comment-multiple',
        },
      },

      // ==================== 关联预订（隐藏菜单） ====================
      {
        path: 'refhotelbooking',
        name: 'WeddingRefHotelBooking',
        component: () => import('#/views/wedding/refhotelbooking/index.vue'),
        meta: {
          title: '酒店预订引用',
          icon: 'mdi:hotel',
          hideMenu: true,
        },
      },
      {
        path: 'refspabooking',
        name: 'WeddingRefSpaBooking',
        component: () => import('#/views/wedding/refspabooking/index.vue'),
        meta: {
          title: 'SPA预订引用',
          icon: 'mdi:spa',
          hideMenu: true,
        },
      },
    ],
  },
];

export default routes;
